export class RespData{
    private code: number = 0;
    private message: string = "success";
    private result!: Object;

    constructor(httpResponse :any){
        this.code = httpResponse.code;
        this.message = httpResponse.message;
        this.result = httpResponse.data;
    }

    public getCode(): number {
        return this.code;
    }

    public setCode(code: number): void {
        this.code = code;
    }

    public getMessage(): string {
        return this.message;
    }

    public setMessage(message: string): void {
        this.message = message;
    }

    public getResult(): Object {
        return this.result;
    }

    public setResult(result: Object): void {
        this.result = result;
    }

}